﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class teachar1
    {
            private String name1;
            private String name2;
            private String name3;
            private String name4;
            private String teacher;
            private String teacher2;

          public string Name1
        {
            get { return this.name1; }
            set { this.name2 = value; }
        }
            public string Name2 { get { return this.name2; } set { this.name2 = value; } }
            public string Name3 { get { return this.name3; } set { this.name3 = value; } }
            public string Name4 { get { return this.name4; } set { this.name4 = value; } }
            public string Teacher { get { return this.teacher; } set { this.teacher = value; } }
            public string Teacher2 { get { return this.teacher2; } set { this.teacher2 = value; } }
           
            public void dy()
        {
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.name1, teacher);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.name2, teacher);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.name3, teacher);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.name4, teacher);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.name1, teacher2);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.name2, teacher2);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.name3, teacher2);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.name4, teacher2);
        }

        }
}
